<%--
  Created by IntelliJ IDEA.
  User: Phillip
  Date: 2014/5/8
  Time: 20:19
  To change this template use File | Settings | File Templates.
--%>
<%
    if (session.getAttribute("isLogon") == null || !(boolean) session.getAttribute("isLogon")) {
%>
    <script type="text/javascript" language="javascript">
        alert("Please login first");
        window.document.location.href="index.jsp";
    </script>
<%
    }
%>